package com.example.polardbxdemo.rust;

import java.net.Socket;
import java.net.InetSocketAddress;

public class PortTest {
    public static void main(String[] args) {
        try (Socket socket = new Socket()) {
            socket.connect(new InetSocketAddress("39.101.169.161", 9100), 5000);
            System.out.println("端口 9100 可达");
        } catch (Exception e) {
            System.out.println("端口 9100 不可达: " + e.getMessage());
        }
    }
}